package com.lgrglw.search.mapping;

import org.compass.annotations.Index;
import org.compass.annotations.Searchable;
import org.compass.annotations.SearchableId;
import org.compass.annotations.SearchableProperty;
import org.compass.annotations.Store;

@Searchable
public class Demoentity {

	@SearchableId
	private String id;

	@SearchableProperty(index = Index.ANALYZED, store = Store.YES)
	private String name;
	// 1.不分词但是建立索引 2.不分词不索引但存储
	@SearchableProperty(index = Index.NOT_ANALYZED, store = Store.YES)
	private String path;

	@SearchableProperty(index = Index.ANALYZED, store = Store.YES)
	private String menuTitle;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getMenuTitle() {
		return menuTitle;
	}

	public void setMenuTitle(String menuTitle) {
		this.menuTitle = menuTitle;
	}

}
